package com.jishucai.servlet;

/**
 * @author qiaowang 2021/4/15
 */
public class DefaultCusomtServlet extends CustomServlet {
    // http://localhost:8888/someservlet/
    @Override
    public void doGet(CustomHttpRequest request, CustomHttpResponse response) throws Exception {
        String servletName = request.getUri().split("/")[1];

        String content = "404 - no this servlet : " + servletName;
        response.write(content);


    }

    @Override
    public void doPost(CustomHttpRequest request, CustomHttpResponse response) throws Exception {
    }
}
